const { DataTypes } = require('sequelize');
let sequelize = require("../db");

const model = sequelize.define('Clazz', {
  id: {
    type: DataTypes.INTEGER,
    allowNull: false,
    primaryKey: true,
    autoIncrement: true
  },
  name: {
    type: DataTypes.STRING,
    allowNull: false,
    primaryKey: false
  },
}, {
  sequelize,
  timestamps: false,
  tableName: 't_class',
});

module.exports = model